#pragma once

/**
 * @copyright Copyright (c) 2025 
 * CSG Digital Grid Technology (Guangdong) Co., Ltd.
 * @author zhouyan
 * @brief iec101 asdu数据编码
*/
#include "xtTypes.h"
#include "IEC_def.h"
#include "IEC_asdu.h"

namespace XIEC {

class CAsduEncoder {
public:
    static xuint8 encode(xuint8* dst, const DataUnitTag& dataUnit, const CVectInfoObject& infoObjects, const Settings &settings);
    static xuint8 encode(xuint8* dst, const DataUnitTag& dataUnit, CInfoObject& infoObject, const Settings &settings);
};
};
